import request from '/@/utils/request';

// 查询会员价格列表
export function listInfo(query?: Object) {
  return request({
    url: '/module/vip/info/list',
    method: 'get',
    params: query
  })
}

// 查询会员价格详细
export function getInfo(id?: number) {
  return request({
    url: '/module/vip/info/' + id,
    method: 'get'
  })
}

// 新增会员价格
export function addInfo(data?: Object) {
  return request({
    url: '/module/vip/info',
    method: 'post',
    data: data
  })
}

// 修改会员价格
export function updateInfo(data?: Object) {
  return request({
    url: '/module/vip/info',
    method: 'put',
    data: data
  })
}

// 删除会员价格
export function delInfo(id?: number) {
  return request({
    url: '/module/vip/info/' + id,
    method: 'delete'
  })
}

// 导出会员价格
export function exportInfo(query?: Object) {
  return request({
    url: '/module/vip/info/export',
    method: 'get',
    params: query
  })
}
